@layout("/common/_container.html",{js:["/assets/plan/plan.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">生产计划管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="title" class="layui-input" type="text" placeholder="关键字-模糊搜索"/>
                            </div>
                            <div class="layui-inline">
                                <select name="status" id="status"
                                        lay-filter="statusSelect">
                                    <option value="">全部阶段</option>
                                    <option value="0">投放阶段</option>
                                    <option value="1">生长阶段</option>
                                    <option value="2">收成阶段</option>
                                    <option value="3">完成阶段</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <input id="timeLimit" class="layui-input" type="text" placeholder="时间范围"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="planTable" lay-filter="planTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">详情</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>
<!--<script type="text/html" id="statusTpl">-->
<!--    {{#  if(d.status === 0){ }}-->
<!--    <span style="color: #F581B1;">投放阶段</span>-->
<!--    {{#  else if(d.status === 1){ }}-->
<!--    <span style="color: #F581B1;">生长阶段</span>-->
<!--   -->
<!--    {{#  } else { }}-->
<!--    {{ d.status }}-->
<!--    {{#  } }}-->
<!--</script>-->

@}